﻿@model Core_User
@{
    ViewBag.ParentUrl = "/User/Worker";
    ViewBag.Title = "编辑出单员";
}
@section header{
    <style>
        .profile-info-name {
            width: auto;
        }
    </style>
}
@section breadcrumb
{
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="/">首页</a>
        </li>
        <li class="active">@ViewBag.Title</li>
    </ul><!-- .breadcrumb -->
}
<div class="col-sm-12">
    <div class="tabbable">
        <ul class="nav nav-tabs padding-16">
            <li class="active">
                <a data-toggle="tab" href="#edit-basic">
                    <i class="green ace-icon fa fa-pencil-square-o bigger-125"></i>
                    基础信息
                </a>
            </li>
        </ul>

        <div class="tab-content profile-edit-tab-content">
            <div id="edit-basic" class="tab-pane in active">

                <form class="form-horizontal" id="frm" action="/User/editworker" method="POST">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 登陆用户： </div>

                                    <div class="profile-info-value">
                                        @if (Model.U_Id > 0)
                                        {
                                        @Model.U_Name
                                        @Html.HiddenFor(o => o.U_Name)
                                        @Html.HiddenFor(o => o.U_Id)
                                        }
                                        else
                                        {
                                        @Html.TextBoxFor(o => o.U_Name, new { @class = "input-large", placeholder = "用户名" })
                                        }
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 真实姓名： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_TureName, new { @class = "input-large", placeholder = "真实姓名" })
                                    </div>
                                </div>


                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系电话： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Phone, new { @class = "input-large", placeholder = "联系电话" })
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 联系手机： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Tel, new { @class = "input-large", placeholder = "联系手机" })
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="col-sm-6">

                            <div class="profile-user-info profile-user-info-striped">


                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 代理商类型： </div>

                                    <div class="profile-info-value">
                                        <label class="inline">
                                            <input name="U_Role" type="radio" class="ace" value="1" />
                                            <span class="lbl middle">  中间代理商</span>
                                        </label>

                                        &nbsp; &nbsp; &nbsp;
                                        <label class="inline">
                                            <input name="U_Role" type="radio" class="ace" value="2" />
                                            <span class="lbl middle"> 终端销售商</span>
                                        </label>

                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 用户性别： </div>

                                    <div class="profile-info-value">

                                        <label class="inline">
                                            <input name="U_Sex" type="radio" class="ace" value="1" />
                                            <span class="lbl middle"> 先生</span>
                                        </label>

                                        &nbsp; &nbsp; &nbsp;
                                        <label class="inline">
                                            <input name="U_Sex" type="radio" class="ace" value="0" />
                                            <span class="lbl middle"> 女士</span>
                                        </label>
                                    </div>
                                </div>


                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 电子邮件： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Email, new { @class = "input-large", placeholder = "电子邮件" })
                                    </div>
                                </div>

                                <div class="profile-info-row">
                                    <div class="profile-info-name"> 传真号码： </div>

                                    <div class="profile-info-value">
                                        @Html.TextBoxFor(o => o.U_Fax, new { @class = "input-large", placeholder = "联系传真" })
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="space-4"></div>

                    <div class="clearfix form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button class="btn btn-info" type="submit" id="btnSubmit">
                                <i class="ace-icon fa fa-check bigger-110"></i>
                                修改并保存
                            </button>

                            &nbsp; &nbsp;
                            <button class="btn" type="reset">
                                <i class="ace-icon fa fa-undo bigger-110"></i>
                                重置
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div><!-- /.span -->